package org.kinglone.front.article.model;

import java.io.Serializable;
import java.util.Date;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.Id;
import javax.persistence.Table;

import org.hibernate.annotations.GenericGenerator;

/**
 * 文章实体类
 * @author yejinlong
 * 2017年7月25日
 * @version 1.0
 */
@Entity 
@Table(name="article")
public class Article implements Serializable{

	private static final long serialVersionUID = 1L;	
	@Id @GenericGenerator(name = "generator", strategy = "uuid.hex")
	@GeneratedValue(generator = "generator")
	@Column(name="sysid", unique = true, nullable = false, length = 32)
	private String sysid;

	
	//标题
	@Column(name="title",nullable = false,length=128)
	private String title;
	//内容
	@Column(name="content",nullable=false)
	private String content;	
	
	//作者
	@Column(name="author",nullable=false,length=32)
	private String author;	
	
	//简介
	@Column(name="briefing")
	private String briefing;		
	
	//创建时间
	@Column(name="createtime")
	private Date createTime;
	//修改时间
	@Column(name = "modifyTime", length = 20)
	private String modifyTime;
	//发布时间
	@Column(name = "publishDatetime", length = 20)
	private String publishDatetime;
	//标签
	@Column(name = "label", length = 32)
	private String label;
	//是否显示  Y:显示  N:不显示
	@Column(name = "isDisplay", length = 1)
	private String isDisplay;
	//是否允许评论  Y:允许  N:不允许
	@Column(name = "isComment",  length = 1)
	private String isComment;
	@Column(name = "classifyId")
	private String classifyId;
	public Article(String sysid, String title, String content, String author,
			String briefing, Date createTime, String modifyTime,
			String publishDatetime, String label, String isDisplay,
			String isComment, String classifyId) {
		super();
		this.sysid = sysid;
		this.title = title;
		this.content = content;
		this.author = author;
		this.briefing = briefing;
		this.createTime = createTime;
		this.modifyTime = modifyTime;
		this.publishDatetime = publishDatetime;
		this.label = label;
		this.isDisplay = isDisplay;
		this.isComment = isComment;
		this.classifyId = classifyId;
	}
	public String getSysid() {
		return sysid;
	}
	public void setSysid(String sysid) {
		this.sysid = sysid;
	}
	public String getTitle() {
		return title;
	}
	public void setTitle(String title) {
		this.title = title;
	}
	public String getContent() {
		return content;
	}
	public void setContent(String content) {
		this.content = content;
	}
	public String getAuthor() {
		return author;
	}
	public void setAuthor(String author) {
		this.author = author;
	}
	public String getBriefing() {
		return briefing;
	}
	public void setBriefing(String briefing) {
		this.briefing = briefing;
	}
	public Date getCreateTime() {
		return createTime;
	}
	public void setCreateTime(Date createTime) {
		this.createTime = createTime;
	}
	public String getModifyTime() {
		return modifyTime;
	}
	public void setModifyTime(String modifyTime) {
		this.modifyTime = modifyTime;
	}
	public String getPublishDatetime() {
		return publishDatetime;
	}
	public void setPublishDatetime(String publishDatetime) {
		this.publishDatetime = publishDatetime;
	}
	public String getLabel() {
		return label;
	}
	public void setLabel(String label) {
		this.label = label;
	}
	public String getIsDisplay() {
		return isDisplay;
	}
	public void setIsDisplay(String isDisplay) {
		this.isDisplay = isDisplay;
	}
	public String getIsComment() {
		return isComment;
	}
	public void setIsComment(String isComment) {
		this.isComment = isComment;
	}
	public String getClassifyId() {
		return classifyId;
	}
	public void setClassifyId(String classifyId) {
		this.classifyId = classifyId;
	}
	
	
	
	
	
	
}
